package com.antoco.operation.bigscreen.model.dto;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="AreaPhDTO")
public class AreaPhDTO {

    @NotNull(message = "区域id不能为空")
    @ApiModelProperty(value = "区域id", example="1")
    private String areaId;

    @NotNull(message = "区域名不能为空")
    @ApiModelProperty(value = "区域名", example="区域一")
    private String areaName;

    @NotNull(message = "ph值不能为空")
    @Min(value = 0, message = "ph值必须是正数")
    @Digits(integer = 10, fraction = 2, message = "ph值必须是数字")
    @ApiModelProperty(value = "ph值", example="2")
    private String phVal;
}